﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MBSBusinessEntities;
using System.Transactions;
using MBSVO;
namespace MBSBLC
{
    public partial class BLC
    {
        #region MovieSchedule
        MovieScheduleBE movieScheduleBE;

        public bool AddMovieSchedule(
         DateTime StartDate,
         DateTime EndDate,
         TimeSpan ShowStartTime,
         TimeSpan ShowEndTime,
         double WeekDateFare,
         double WeekEndFare,
         bool IsDeleted,
         int CinemaID,
         int ScreenNo,
         int MovieID)
        {

            movieScheduleBE = new MovieScheduleBE(
                StartDate,
                EndDate,
                ShowStartTime,
                ShowEndTime,
                WeekDateFare,
                WeekEndFare,
                IsDeleted,
                CinemaID,
                ScreenNo,
                MovieID);

            return movieScheduleBE.Add();

        }


        public MovieScheduleVO GetMovieScheduleByID(int MovieScheduleID)
        {
            movieScheduleBE = new MovieScheduleBE();
            movieScheduleBE = movieScheduleBE.GetMovieScheduleByID(MovieScheduleID);
            MovieScheduleVO movieScheduleVO = BLCUtility.convertMovieScheduleBEtoVO(movieScheduleBE);
            return movieScheduleVO;
        }


        public List<MovieScheduleVO> GetMovieScheduleByMovieAndCinemaAndTheatreNo(int MovieID, int CinemaID, int ScreenNo)
        {
            movieScheduleBE = new MovieScheduleBE();
            List<MovieScheduleBE> movieScheduleBEList = movieScheduleBE.GetMovieScheduleByMovieAndCinemaAndTheatreNo(MovieID, CinemaID, ScreenNo);
            List<MovieScheduleVO> movieScheduleVOList = BLCUtility.convertMovieScheduleBEListtoVO(movieScheduleBEList);
            return movieScheduleVOList;
        }


        public bool DeleteMovieSchedule(int MovieScheduleID)
        {
            movieScheduleBE = new MovieScheduleBE();

            return movieScheduleBE.Delete(MovieScheduleID);


        }

        #endregion
    }
}
